package com.yzk.auction.entity;

import java.util.Date;

/**
 * @author： lys
 * @date： 2020/8/20 9:19
 * @类名： Orders
 * @Title： 订单
 */

public class Orders {
    private int order_id;   //订单号
    private int goods_id;   //商品id
    private int user_id;    //用户id
    private Date order_time;//订单生成时间
    private int pay_status; //支付状态(0未支付 1已支付)

    public Orders() {
    }

    public Orders(int goods_id, int user_id, Date order_time, int pay_status) {
        this.goods_id = goods_id;
        this.user_id = user_id;
        this.order_time = order_time;
        this.pay_status = pay_status;
    }

    public Orders(int order_id, int goods_id, int user_id, Date order_time, int pay_status) {
        this.order_id = order_id;
        this.goods_id = goods_id;
        this.user_id = user_id;
        this.order_time = order_time;
        this.pay_status = pay_status;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public Date getOrder_time() {
        return order_time;
    }

    public void setOrder_time(Date order_time) {
        this.order_time = order_time;
    }

    public int getPay_status() {
        return pay_status;
    }

    public void setPay_status(int pay_status) {
        this.pay_status = pay_status;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "order_id=" + order_id +
                ", goods_id=" + goods_id +
                ", user_id=" + user_id +
                ", order_time=" + order_time +
                ", pay_status=" + pay_status +
                '}';
    }
}
